import request from '@/config/axios'

export interface WageProductionPriceApplyVO {
  id: number
  taskNumber: string
  productNumber: string
  productName: string
  drawingNumber: string
  specification: string
  partName: string
  dictStatus: number
  creatorName: string
  partNumber: string
  orderQuantity: number
  partSpecification: string
  unitPrice: number
  dictProcessName: number
  planQuantity: number
  code: string
  productionTeam: string
  deviceName: string
  deviceCode: string
  workName: string
  workJobNum: string
  netSizeLength: number
  netSizeWidth: number
  cuttingSizeLength: number
  cuttingSizeWidth: number
  reportQuantity: number
  completeQuantity: number
  differenceQuantity: number
  processPrice: number
  workType: string
}

// 查询配置中心-工资考核-生产价目审核列表
export const getWageProductionPriceApplyPage = async (params) => {
  return await request.get({ url: `/config/wage-production-price-apply/page`, params })
}

// 查询配置中心-工资考核-生产价目审核详情
export const getWageProductionPriceApply = async (id: number) => {
  return await request.get({ url: `/config/wage-production-price-apply/get?id=` + id })
}

// 提交审核配置中心-工资考核-生产价目审核
export const updateWageProductionPriceApply = async (data) => {
  return await request.post({ url: `/config/wage-production-price-apply/submit`, data })
}


// 导出配置中心-工资考核-生产价目审核 Excel
export const exportWageProductionPriceApply = async (data) => {
  return await request.download({ url: `/config/wage-production-price-apply/export-excel`, data })
}
